<?php
class Common{
	
	/*
	@$this
	@$mes:提示信息
	@$target:转跳到页面名称
	@$url:转跳到页面地址
	@$time:转跳时间
	@
	*/
	function redirect($obj,$mes='',$target='首页',$url='',$time=5){
        header("Content-Type:text/html; charset=utf-8");
		$obj->assign("message",$mes);
		$obj->assign("target",$target);
		$obj->assign("url",$url);
		$obj->assign("time",$time);
	}
}
?>